﻿@{
    var model = ViewData["Author"] != null ? (List<VietPublisher.BSL.BK.T_BK_Author>)ViewData["Author"] : new List<VietPublisher.BSL.BK.T_BK_Author>();
    var AuthorUpd = "";
    foreach(var i in model){
        AuthorUpd = "," + i.AuthorID;
    }
}
<table class="upImg">
    <tr>
        <th>
            Author
        </th>
        <td align="right">
            <input id="AuthorGroupID" name="AuthorGroupID" type="hidden" value="@AuthorUpd" />
            <input type="button" value="Modify" onclick="PopupAuthor();" />
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <select name="cbxAuthor" id="cbxAuthor" size="4" multiple="multiple" style="width: 200px;
                height: 100px">
                @foreach (var item in model)
                {
                    <option value="@item.AuthorID">@item.AuthorName</option>
                }
            </select>
        </td>
    </tr>
    
</table>
